package com.exahq.util;

import com.exahq.shiro.AccountProfileAdmin;
import org.apache.shiro.SecurityUtils;

/**
 * @description:
 * @author: lhq
 * @time: 2021/1/27 19:46
 */

public class ShiroUtil {
    public static AccountProfileAdmin getProfileAdmin() {
        return (AccountProfileAdmin) SecurityUtils.getSubject().getPrincipal();
    }
}
